Skip to main content

CanvasPropertyOpacity

Type

operator

Summary

The current opacity setting of a canvas.

Syntax

the opacity of <mCanvas>

Description

The opacity of drawing operations on mCanvas, as a number between 0 and 1.

Parameters

NameTypeDescription

mCanvas

An expression which evaluates to a canvas.

Examples

// make subsequent drawing operations render with half transparency
set the opacity of this canvas to 0.5
Thank you for your feedback!

Was this page helpful?